package com.hhq.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>Description: 业务异常 </p>
 *
 * @author : xiaodong.yang
 * @date : 2023/10/7 17:39
 */
@Setter
@Getter
public class BusinessException extends RuntimeException {
    /**
     * 返回code
     */
    private String code;
    /**
     * 返回msg
     */
    private String msg;

    public BusinessException(String code, String msg) {
        super(msg);
        this.code = code;
    }

}
